<?php 
namespace app\index\controller;
use think\Controller;
/**
 * 
 */
class Base extends Controller{
	
	public function __construct() {
        parent::__construct();
        $this->getSiteConfig();
    }

    function getSiteConfig(){
        $site = db('site_config')->where('id = 1 AND status = 0')->find();
        $this->assign('site',$site);
    }

}